import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Index from './views/index'

Vue.use(Router)

export default new Router({
	routes: [
		{
			path: '/',
			name: 'index',
			component: Index,
			children : [
				{
					path: '/dashboard',
					name: 'dashboard',
					component: () => import('./views/test.vue')
				},

				{
					path: '/menuConfig',
					name: 'menuConfig',
					component: () => import('./views/menu/index.vue')
				},

				{
					path: '/roleList',
					name: 'roleList',
					component: () => import('./views/role/index.vue')
				},

				{
					path: '/modifypassword',
					name: 'modifypassword',
					component: () => import('./views/modifypassword/index.vue')
				},

				{
					path: '/floor',
					name: 'floor',
					component: () => import('./views/floor/index.vue')
				},

				{
					path: '/dbtableconfig',
					name: 'dbtableconfig',
					component: () => import('./views/test/dbtableconfig.vue')
				},

				{
                    path: '/interface',
                    name: 'interface',
                    component: () => import('./views/interface/index.vue')
                },

			]
		},
		{
			path: '/login',
			name: 'login',
			component: () => import('./views/login/index')
		},

	]
})
